package org.madgecko.api.dao.iface;

import org.madgecko.api.model.Message;
import org.madgecko.api.model.enumeration.MessageCategory;
import org.madgecko.basic.dao.IBaseDao;
import org.madgecko.basic.model.Pager;

import java.util.List;

/**
 * Author       : MadFrog
 * Date         : 2018/11/10 17:12
 * Description  : 消息数据访问接口
 */
public interface IMessageDao extends IBaseDao<Message> {
    List<Message> listByCategory(MessageCategory messageCategory);
    Pager<Message> find(MessageCategory messageCategory);
}
